<%--
  Created by IntelliJ IDEA.
  User: wangxiaoping
  Date: 2024/8/22
  Time: 14:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--<form method="get" action="${pageContext.request.contextPath}/login">--%>
<%--用户名：<input type="text" name="username"/><br/>--%>
<%--    密码：<input type="password"  name="password"/><br/>--%>
<%--    <input type="submit"/>--%>
<%--</form>--%>

<form method="post" action="${pageContext.request.contextPath}/login">
    用户名：<input type="text" name="username" required/>
    密码：<input type="password" name="password" required/>
    <input type="checkbox" name="hobbies" value="篮球"/>篮球
    <input type="checkbox" name="hobbies" value="足球"/>足球
    <input type="checkbox" name="hobbies" value="排球"/>排球
    <input type="checkbox" name="hobbies" value="冰球"/>冰球
    <input type="submit"/>
</form>

</body>
</html>
